﻿<%@ Page Title="药品信息" Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage_New.master" CodeBehind="SortGoodsList.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportSort.GoodsList" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabnav">
        <ul>
            <li class="active">
                <a href="#" target="_blank">药品信息</a>          
            </li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                通用名：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProductName" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                剂型：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMedicineModelName" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                规格：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutlookc" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                             <td>
                                排序字段：
                            </td>
                            <td align=left>
                                <asp:DropDownList ID="droSortField" runat="server" Height="20px" Width="146px">
                                    <asp:ListItem Value="PurchaseCountTotal asc">采购总数量 升序</asp:ListItem> <asp:ListItem Value="PurchaseCountTotal desc">采购总数量 降序</asp:ListItem>
                                    <asp:ListItem Value="PurchaseAmountTotal asc">采购总金额 升序</asp:ListItem><asp:ListItem Value="PurchaseAmountTotal desc">采购总金额 降序</asp:ListItem>
                                    <asp:ListItem Value="WareHouseCountTotal asc">入库总数量 升序</asp:ListItem><asp:ListItem Value="WareHouseCountTotal desc">入库总数量 降序</asp:ListItem>
                                    <asp:ListItem Value="WareHouseAmountTotal asc">入库总金额 升序</asp:ListItem><asp:ListItem Value="WareHouseAmountTotal desc">入库总金额 降序</asp:ListItem>
                                    <asp:ListItem Value="WareHouseRate asc">入库率 升序</asp:ListItem><asp:ListItem Value="WareHouseRate desc">入库率 降序</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                医院：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtHospitalName" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                采购类型：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="droSortSource" runat="server">
                                    <asp:ListItem Value="-1">请选择</asp:ListItem>
                                    <asp:ListItem Value="0">基本药品</asp:ListItem>
                                    <asp:ListItem Value="1">非基本药品</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                              <td align="right">
                                单位：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" MaxLength="25" runat="server"></asp:TextBox>
                            </td></td>
                <td colspan = 2 align=center >
                    <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="searchbtn"
                        SkinID="search" ToolTip="点击查询符合条件的数据" onclick="btnQuery_Click" />
                </td>
                        </tr>
                    </table>
                
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwGoods" CssClass="mainlist" runat="server" 
        AutoGenerateColumns="False" EmptyDataText="暂无有效的信息！"  PageSize="24" 
        onrowcommand="gvwGoods_RowCommand">
         <Columns>
            <asp:TemplateField HeaderText="">
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex - 1)%></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="流水号" DataField="ProcureCatalogID" />
            <asp:BoundField HeaderText="通用名" DataField="ProductName" />
            <asp:BoundField HeaderText="剂型" DataField="MedicineModelName" />
            <asp:BoundField HeaderText="规格" DataField="Outlookc" />
            <asp:BoundField HeaderText="单位" DataField="Unit" />
            <asp:TemplateField HeaderText="采购类型">
                <ItemTemplate>
                    <%#HZ.Supervise.Web.Function.FormatDrugSource(Eval("SortSource"))%>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="生产企业" DataField="CompanyName_SC" />
            <asp:BoundField HeaderText="采购数量" DataField="PurchaseCountTotal" />
            <asp:BoundField HeaderText="采购金额" DataField="PurchaseAmountTotal"/>
            <asp:BoundField HeaderText="入库数量" DataField="WareHouseCountTotal"/>
            <asp:BoundField HeaderText="入库金额" DataField="WareHouseAmountTotal"/>
            <asp:BoundField HeaderText="入库率" DataField="WareHouseRate" DataFormatString={0:P}/>
            <asp:TemplateField HeaderText="操作">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:LinkButton ID="lbnDetail" runat="server" CommandName="DirectByDetail"  CommandArgument='<%# Eval("ProcureCatalogID")%>' >详情</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>






